package po;

import java.io.Serializable;
import java.util.ArrayList;


@SuppressWarnings("unused")
public class CashRecordPO implements Serializable,Containsable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String accountId;
	CashRecordList itemList;
	double sum = 0;
	SerialNumber serialNumber;
	String userId;
	
	public CashRecordPO(String accountId, CashRecordList itemList ,
			String userId) {
		this.accountId = accountId;
		this.itemList = itemList;
		sum = itemList.getTotal();
		this.userId = userId;
	}


	public String getAccountId() {
		return accountId;
	}


	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}



	public CashRecordList getItemList() {
		return itemList;
	}


	public double getSum() {
		return sum;
	}



	public void setSum(double sum) {
		this.sum = sum;
	}



	public SerialNumber getSerialNumber() {
		return serialNumber;
	}



	public void setSerialNumber(SerialNumber serialNumber) {
		this.serialNumber = serialNumber;
	}



	public String getUserId() {
		return userId;
	}



	public void setUserId(String userId) {
		this.userId = userId;
	}



	public boolean contains(String key) {
		// TODO Auto-generated method stub
		return false;
	}

}
